%date: 10 Luglio 2008
\documentclass[a4paper,italian,12pt]{report}
\usepackage[hyperindex]{hyperref}
\usepackage[utf8]{inputenc}
\usepackage[italian,english]{babel}
\usepackage[T1]{fontenc}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{subfigure}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{latexsym}
\usepackage{float}
\usepackage{listings}
\usepackage[usenames,dvips]{color}
\usepackage{multicol}
\usepackage{framed}
%\usepackage{fullpage}
\usepackage{eso-pic}
\usepackage{rotating}

\linespread{1.3}
\makeindex
\lstset{language=Java}
\lstset{frameround=fttt}
\lstset{basicstyle=\scriptsize}
\lstset{stringstyle=\ttfamily}
\lstset{showstringspaces=false}
\lstset{morecomment=[s]{/*}{*/}}
\lstset{morecomment=[n]{/*}{*/}}
%\lstset{morekeywords={u_int1,u_int2,u_int4,u_int8,GList,GQueue,GHashTable,servent_data,init_data,chatclient,chat,route_entry,pthread_t,time_t,http_packet,http_header_response,http_header_request,tortella_packet,tortella_header,bye_desc,message_desc,search_desc,searchhits_desc,join_desc,leave_desc,list_desc,listhits_desc,ping_desc,pthread_rwlock_t,pthread_mutex_t,GtkWidget,gpointer,gchar,gboolean,gint,GtkTreeIter,GtkTree}}
\lstset{aboveskip=\bigskipamount}
\lstset{belowskip=\bigskipamount}
\lstset{showlines=false}
\lstset{breaklines=true}
\definecolor{light-gray}{gray}{0.95}
\lstset{backgroundcolor=\color{light-gray}}
\lstset{frame=trBL}

\newcommand{\code}[1]{%
	\texttt{#1}\index{#1}
}%
\newcommand{\var}[1]{%
	\emph{#1}\index{#1}%
}%

\definecolor{lightgray}{gray}{0.95}
\newcommand{\sfondo}
{
	\AddToShipoutPicture{
		\AtTextCenter{
			\put(0,-5){
				\makebox(0,0)[c]{
					\resizebox{2.2\textwidth}{!}{
						\rotatebox{60}{
							\textsf{\textbf{\textcolor{lightgray}{TaskSpider}}}
						}
					}
				}
			}
		}
	}
}

\begin{document}
\include{title}
\pagebreak
\pagestyle{fancy}
\include{layout}
\setcounter{page}{1}
\sfondo
\tableofcontents

\include{cap/introduzione}
\include{cap/struttura}
\include{cap/spider}
\include{cap/retrieval}
\include{cap/view}
\include{cap/performance}
\include{cap/conclusioni}

\listoftables
\listoffigures
\printindex

\end{document}